import request from "@/utils/request";

enum API {
    Risk_URL = "/itp/risk/index",
    Business_URL = "/itp/risk/business",
} 
export default{
    getRiskIndexClassify:(param:any)=>request.post(`${API.Risk_URL}/classify`,param),
    getRiskIndexDetail:(id:number)=>request.get(`${API.Risk_URL}/detail?id=${id}`),
    saveRiskIndexInfo:(param:any)=>request.post(`${API.Risk_URL}/save`,param),
    detRiskIndexDetail:(id:number)=>request.get(`${API.Risk_URL}/delete?id=${id}`),
    copyRiskIndex: (id: number) => request.get(`${API.Risk_URL}/copy?riskIndexId=${id}`),

    selectRiskBusiness:(param:any)=>request.post(`${API.Business_URL}/select`,param),
    getRiskPerateLog: (current: number, size: number,param:any) => request.post(`${API.Risk_URL}/log/operator?current=${current}&size=${size}`,param),// 操作日志
    beginCalc: (param:any) => request.post(`/itp/risk/check`, param),
    selectRiskIndex: (param: any) => request.post(`${API.Risk_URL}/select`, param),
    postIndexMonitorLog:(current: number, size: number,param:any) => request.post(`${API.Risk_URL}/monitor/log/operator?current=${current}&size=${size}`,param),// 监控日志
}
